gdkdrop-x11: Use the preferred action if possible
authorCorey Berla <corey@berla.me>
Sat, 16 Jul 2022 20:34:07 +0000 (13:34 -0700)
committerCorey Berla <corey@berla.me>
Sat, 16 Jul 2022 21:02:47 +0000 (14:02 -0700)
commit16fd2608fdf8765a7d53ae9ecaeb3dacbbc96d89
treeb6b8e6abc6024d1503d127dcd75949153a3eefae
parentc9c48d78bf0032b2ba3b68c3aa1b150239c9fc0d
gdkdrop-x11: Use the preferred action if possible

The XDND suggested action is a relic from when the source would control
the action for a drop.  With the new GtkDropTarget the target decides
the action (not the source).  That means the all of the returned
results from the ::enter and ::motion handlers will be unexpectely
ignored. Prefer to use the preferred action over the x11 suggested action.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4259
gdk/x11/gdkdrop-x11.c